.PHONY:all
all:login register article search comment

login:login.cc
	g++ $^ -o $@ /usr/local/lib/libredis++.a /usr/lib/x86_64-linux-gnu/libhiredis.a -std=c++17 -lmysqlclient -ljsoncpp
register:register.cc
	g++ $^ -o $@ -std=c++11 -lmysqlclient -ljsoncpp
article:article.cc
	g++ $^ -o $@ -std=c++11 -lmysqlclient -ljsoncpp
comment:comment.cc
	g++ $^ -o $@ -std=c++11 -lmysqlclient -ljsoncpp
search:search.cc
	g++ $^ -o $@ -std=c++11 -lmysqlclient -ljsoncpp

.PHONY:clean
clean:
	rm -f login register article search comment 
